Skip to content

Access arrays by pointer arithmetic.#86

Open
paulinus wants to merge 1 commit intolaurentkneip:masterfrom
paulinus:feature-faster-bindings
Open

Access arrays by pointer arithmetic.#86
paulinus wants to merge 1 commit intolaurentkneip:masterfrom
paulinus:feature-faster-bindings

Conversation

@paulinus
Copy link
Copy Markdown
Contributor

This PR accelerates the python binding by about 20%. The trick is to access the python data using pointer arithmetic rather than calling array methods. This prevents bounds checks on every access to the array.

This prevents bounds checks on every access to the array.
Results in more than 20% speed up for ransac methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant